package vip.liux.front.adapter.controller;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

@RestController
@RequestMapping("/api/webhooks")
public class WebHooks {

    private static final Logger log = LoggerFactory.getLogger(WebHooks.class);

    @PostMapping("/apifox")
    public String apifox(@RequestBody Map<String, Object> body) {
        log.info("apifoxWebHook: {}", body);
        return "success";
    }
}
